var request = require('request');
var Agent = require('socks5-http-client/lib/Agent');
request({
	url: 'http://www.baidu.com/s?wd=ip',
	agentClass: Agent,
	agentOptions: {
		socksHost: '192.168.61.10', // Defaults to 'localhost'.
		socksPort: 3128 // Defaults to 1080.
	}
}, function(err, res) {
	console.log(err || res.body);
});